From 7109c4c4efa0e24b9a470e02f836d959ffc8910e Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Mon, 13 Jul 2009 21:56:24 +0000 Subject: [PATCH] (bug 19571) Override buildConcat for SQLite. --- RELEASE-NOTES | 1 + includes/db/DatabaseSqlite.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index bfe4c208d7..769c8b75ca 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -250,6 +250,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Removed repetition of URIs in the title attributes of external links. * (bug 19693) User name is now escaped in "Contributions for ..." link on Special:BlockIP +* (bug 19571) Override buildConcat for SQLite. == API changes in 1.16 == diff --git a/includes/db/DatabaseSqlite.php b/includes/db/DatabaseSqlite.php index 18a2f06888..ccc29a2ff2 100644 --- a/includes/db/DatabaseSqlite.php +++ b/includes/db/DatabaseSqlite.php @@ -455,6 +455,13 @@ class DatabaseSqlite extends DatabaseBase { public function lockTables( $read, $write, $method ) {} public function unlockTables( $method ) {} + + /* + * Build a concatenation list to feed into a SQL query + */ + function buildConcat( $stringList ) { + return implode( ' || ', $stringList ); + } } // end DatabaseSqlite class -- 2.20.1